var dbserver = require('../dao/dbserver.js');

// 好友列表
exports.getUserList = function(req,res){
	let data = req.body.data;
	dbserver.getUserList(data,res);
}

// 一对一消息列表
exports.getMessage = function(req,res){
	let data = req.body.data;
	dbserver.getMessage(data,res);
}

// 未读消息数
exports.unreadMsg = function(req,res){
	let data = req.body.data;
	dbserver.unreadMsg(data,res);
}

// 未读消息数修改
exports.updateReadMsg = function(req,res){
	let data = req.body.data;
	dbserver.updateReadMsg(data,res);
}

// 群列表（内有未读消息数）
exports.getGroupList = function(req,res){
	let data = req.body.data;
	dbserver.getGroupList(data,res);
}

// 群消息
exports.getGroupMessage = function(req,res){
	let data = req.body.data;
	dbserver.getGroupMessage(data,res);
}

// 群未读消息数修改
exports.updateReadGroupMsg = function(req,res){
	let data = req.body.data;
	dbserver.updateReadGroupMsg(data,res);
}
